package org.springblade.modules.repair.vo.rescue;

import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSON;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springblade.modules.repair.entity.MaintainPlanContentUser;
import org.springblade.modules.repair.vo.plan.v2.PlanUserSignDetailVo;
import org.springblade.modules.system.entity.User;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author zcc
 * @version 1.0
 * @date 2023/10/20 15:25
 */
@Data
@ApiModel("电梯救援电梯列表")
public class ElevatorOfRescueVo {

	private Long planId;

	private Date createTime;

	private Integer trapType;

	private Integer typeStatus;

	private Date planDate;

	private String trapDesc;

	private Integer planStatus;

	private String userNames;

	private String userIds;

	private String groupDate;

	/**
	 * 关联人员
	 */
	private List<MaintainPlanContentUser> planContentUserVos;

	public void setPlanDate(Date planDate) {
		this.planDate = planDate;
		this.groupDate = DateUtil.format(planDate, "yyyy")+"年" + DateUtil.format(planDate, "MM")+"月";
	}

}
